package com.ossjk.qlh.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ossjk.qlh.business.vo.MenuVO;
import com.ossjk.qlh.business.vo.SetmealVO;
import com.ossjk.qlh.order.entity.OrderTc;
import com.ossjk.qlh.order.entity.Orders;
import com.ossjk.qlh.order.vo.*;
import com.ossjk.qlh.system.vo.LoginfoVo;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 订单Mapper接口
 *
 * @author liuxi
 * @since 2020-08-14
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<TcList> selectTcList(@Param(Constants.WRAPPER) QueryWrapper<TcList> queryWrapper);


    List selectJdPrintOne(@Param(Constants.WRAPPER) QueryWrapper<JdOrderVo> queryWrapper);


    Page selectLunchOrderVo(Page page,@Param("type") Integer type,@Param("nowdate") String nowdate);
    Page historyJdPrint(Page page,@Param(Constants.WRAPPER) QueryWrapper<JdOrderVo> queryWrapper);
    List selectJdPrint(@Param(Constants.WRAPPER) QueryWrapper<JdOrderVo> queryWrapper);
    List<OrderTc> selectTcByEid(@Param(Constants.WRAPPER) QueryWrapper<OrderTc> queryWrapper);
    Integer UpdateIds(@Param("ids") Collection<? extends Serializable> ids);

	Page selectOrderHistory(Page page,@Param(Constants.WRAPPER) QueryWrapper<historyVo> queryWrapper);

    List<countZc> countZC(@Param(Constants.WRAPPER) QueryWrapper<countZc> queryWrapper);
    List<countFc> countFC(@Param(Constants.WRAPPER) QueryWrapper<countFc> queryWrapper);
    List<countQc> countQC(@Param(Constants.WRAPPER) QueryWrapper<countQc> queryWrapper);
    List<countZs> countZs(@Param(Constants.WRAPPER) QueryWrapper<countZs> queryWrapper);
    List<countQt> countQt(@Param(Constants.WRAPPER) QueryWrapper<countQt> queryWrapper);
}
